/*******************************************************************************
* Copyright 2013 Internet2 
* 
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at 
* 
*   http://www.apache.org/licenses/LICENSE-2.0
* 
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. 
******************************************************************************/
package edu.internet2.middleware.assurance.mcb.authn.provider;

import javax.security.auth.login.LoginException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import edu.internet2.middleware.shibboleth.idp.authn.AuthenticationException;

public class TokenLoginSubmodule implements MCBSubmodule {

	private final Logger log = LoggerFactory.getLogger(TokenLoginSubmodule.class);
	private String beanName = null;
	
	public boolean displayLogin(MCBLoginServlet servlet, HttpServletRequest request,
			HttpServletResponse response) throws AuthenticationException,
			LoginException {
		// TODO Auto-generated method stub

		return true;
	}

	public boolean processLogin(MCBLoginServlet servlet, HttpServletRequest request,
			HttpServletResponse response) throws AuthenticationException,
			LoginException {
		// TODO Auto-generated method stub

		return true;
	}


	public void init() {
		// TODO Auto-generated method stub
		log.info("TokenLoginSubmodule initialized.");
	}

	public void setBeanName(String name) {
		beanName = name;
	}

	public String getBeanName() {
		return beanName;
	}
}
